package com.myblog.manage.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.myblog.common.annotation.Excel;
import com.myblog.common.core.domain.BaseEntity;

/**
 * 友情链接对象 tb_friend_link
 * 
 * @author mingo_sheep
 * @date 2025-05-02
 */
public class FriendLink extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 网站名称 */
    @Excel(name = "网站名称")
    private String name;

    /** 网站链接 */
    @Excel(name = "网站链接")
    private String url;

    /** 网站描述 */
    @Excel(name = "网站描述")
    private String description;

    /** 网站图标 */
    @Excel(name = "网站图标")
    private String avatar;

    /** 审核状态：0-待审，1-通过 */
    @Excel(name = "审核状态：0-待审，1-通过")
    private Integer isApproved;

    /** 申请时间（自动记录） */
    @Excel(name = "申请时间", readConverterExp = "自=动记录")
    private Date applyTime;

    /** 审核通过时间（审核后更新） */
    @Excel(name = "审核通过时间", readConverterExp = "审=核后更新")
    private Date approveTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }

    public void setIsApproved(Integer isApproved) 
    {
        this.isApproved = isApproved;
    }

    public Integer getIsApproved() 
    {
        return isApproved;
    }

    public void setApplyTime(Date applyTime) 
    {
        this.applyTime = applyTime;
    }

    public Date getApplyTime() 
    {
        return applyTime;
    }

    public void setApproveTime(Date approveTime) 
    {
        this.approveTime = approveTime;
    }

    public Date getApproveTime() 
    {
        return approveTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("url", getUrl())
            .append("description", getDescription())
            .append("avatar", getAvatar())
            .append("isApproved", getIsApproved())
            .append("applyTime", getApplyTime())
            .append("approveTime", getApproveTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
